package com.guigu.Curriculum.entity.Vo;

import com.baomidou.mybatisplus.annotation.*;
import com.guigu.Curriculum.enums.CourseStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data//生成getter,setter,toString等函数
@AllArgsConstructor//生成全参数构造函数
@NoArgsConstructor//生成无参构造函数
public class AbCourselecturer {

    /**
     * 课程ID
     */
    @TableId(value = "course_id",type = IdType.ASSIGN_ID)
    private String courseId;

    /**
     * 课程类别ID
     */
    private Long courseSubjectId;

    /**
     * 课程标题
     */
    @TableField(value = "course_title")
    private String courseTitle;

    /**
     * 课程封面图片路径
     */
    private String courseCover;

    /**
     * 总课时
     */
    private Integer courseLessonNum;

    /**
     * 课程讲师ID
     */
    private Long courseTeacherId;


    /**
     * 讲师昵称
     */
    private String lecturerfullname;

    /**
     * 课程销售价格，设置为0则可免费观看
     */
    private BigDecimal coursePrice;

    /**
     * 浏览数量
     */
    private Long courseViewCount;

    /**
     * 销售数量
     */
    private Long courseBuyCount;

    /**
     * 课程状态 Draft未发布  Normal已发布
     */
    private CourseStatusEnum courseStatus;

    /**
     * 逻辑删除 1（true）已删除， 0（false）未删除
     */
    @TableLogic
    private Integer courseIsDeleted;

    /**
     * 排序id
     */
    private Long courseSort;

    /**
     * 创建时间
     */
    @TableField(value = "course_gmt_create",fill = FieldFill.INSERT)

    private LocalDateTime courseGmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "course_gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime courseGmtModified;

    private String courseRichText;
}
